# !/usr/bin/env python
# -*- coding: utf-8 -*-
# @File  : 工具创建-@tool 装饰器.py
# @Author: dongguangwen
# @Date  : 2025-03-23 21:08
from langchain_core.tools import tool


@tool
def multiply(a: int, b: int) -> int:
    """Multiply two numbers."""
    return a * b


# Let's inspect some of the attributes associated with the tool.
print(multiply.name)
print(multiply.description)
print(multiply.args)

"""
multiply
Multiply two numbers.
{'a': {'title': 'A', 'type': 'integer'}, 'b': {'title': 'B', 'type': 'integer'}}
"""